No, a card discarded then played with madness does not touch the graveyard unless something sends it from the battlefield to the graveyard
If you do, your opponent switches their Active Pokmon with 1 of their Benched Pokmon
Style of the bag(show us pictures if possible)
Trainers Rocket Grunt: Raticate (24), Raticate (24) Rocket Grunt: Arbok (26) Rocket Grunt: Rattata (21), Rattata (21), Rattata (21), Rattata (23), Rattata (23) Rocket Grunt: Zubat (26), Zubat (26) Rocket Grunt: Grimer (23), Grimer (23), Muk (25) Scientist Mark: Magnemite (27), Magnemite (27), Magnemite (27) Rocket Grunt: Weezing (26) Rocket Grunt: Koffing (23), Grimer (23), Zubat (23), Rattata (23) Scientist Rich: Porygon (30) Rocket Grunt: Zubat (22), Golbat (24), Muk (22) Rocket Executive: Koffing (30), Koffing (30), Koffing (30), Weezing (32), Koffing (30), Koffing (30) With key in hand, head over to the Underground and you will be able to open the locked door there and head downstairs
Or whatever you can come up with